import request from "../utils/request";
// 用户登录
const userLogin = (username, password) =>{
    return request({
        url:'/v1/admin/login',
        method:"POST",
        data:{
            username,
            password
        }
    })
}
// 获取 用户信息
const getUseinfo = () =>{ 
    return  request({
        url:'/v1/admin/getUserInfo',
        method:'GET'
    })
}
// 退出登录
const remLogin = () =>{
    return  request({
        url:'/v1/admin/logout',
        method:'POST'
    })
}

export default {
    userLogin,
    getUseinfo,
    remLogin
}